<!DOCTYPE html>
<html>
<head>
	<title>视频修改</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" href="/resources/common/css/default/control-manage.css" />
	<style type="text/css">
		table.editflexigrid td, table.editflexigrid th{
			border: 1px solid #000;
		}
		table.editflexigrid th{
			align: center;
			font-size: 12px;
			font-weight: normal;
		}
	</style>
</head>
<body>
	<div class="Mheader">
		<ul>
			<li>内容管理</li>
			<li class="M_sep">&gt;</li>
			<li>视频管理</li>
			<li class="M_sep">&gt;</li>
			<li>视频修改</li>
		</ul>
	</div>
	
	<div style="float: left; width:400px;margin-left: -170px;">
		<span>合集信息:</span>
		<table class="editflexigrid" style="width: 360px; border-collapse:collapse;margin-bottom: 20px">
			<tr>
				<th width="30%">合集ID</th>
				<td width="70%"><span id="saleAid">${video.saleAid}</span></td>
			</tr>
			<tr>
				<th>合集名称</th>
				<td>
					<input type="text" id="saleAname" value="${video.saleAname}" />
				</td>
			</tr>
			<tr>
				<th>合集副标题</th>
				<td><input type="text" id="subTitle" value="" /></td>
			</tr>
			<tr>
				<th id="albumDireText">合集导演</th>
				<td>
					<input type="text" id="albumDirector" value="" />
					<input type="hidden" id="albumMaster" value="" />
				</td>
			</tr>
			
			<tr>
				<th id="albumActorText">合集主演</th>
				<td>
					<input type="text" id="albumActor" value="" />
					<input type="hidden" id="albumGuest" value="" />
				</td>
			</tr>
			<tr id="falbumVoiceActorTr">
				<th id="albumVoiceActorText">合集声优</th>
				<td>
					<input type="text" id="albumVoiceActor" value="" />
				</td>
			</tr>
			<tr>
				<th>总集数</th>
				<td><input type="text" id="totalCount"/></td>
			</tr>
			<tr>	
				<th>视频总数</th>
				<td><span id="videoCount"></span></td>
			</tr>
			<tr>
				<th>上映时间</th>
				<td>
					<input type="hidden" id="albumPlayDate" value=""/>
					<input type="text" style="width:40px;" id="albumPlayYear" value=""/>年
					<input type="text" style="width:40px;" id="albumPlayMonth" value=""/>月
					<input type="text" style="width:40px;" id="albumPlayDay" value=""/>日
					<input type="hidden" style="width:40px;" id="hdAlbumPlayYear" value=""/>
					<input type="hidden" style="width:40px;" id="hdAlbumPlayMonth" value=""/>
					<input type="hidden" style="width:40px;" id="hdAlbumPlayDay" value=""/>
				</td>
			</tr>
			<tr>
				<th>评分/评分人数</th>
				<td>
					<span><input type="text" style="width:20px;" id="albumScore" value="" maxlength=4/></span>&nbsp; / &nbsp;
					<span><input type="text" style="width:20px;" id="albumScoreMan" value="0" readonly/></span>
				</td>
			</tr>
			<tr>
				<th>播放次数</th>
				<td><span id="albumPlayCount">0</span></td>
			</tr>
			<tr>
				<th>下载次数</th>
				<td><span id="albumDownloadCount">0</span></td>
			</tr>
			<tr>
				<th>收藏次数</th>
				<td><span id="albumCollectCount">0</span></td>
			</tr>
			<tr>
				<th>状态</th>
				<td><span id="albumStatus"></span></td>
			</tr>
			<tr id="signTr">
				<th>内容标识</th>
				<td>
					<input type="checkbox" id="only" value="1"/><label for="only">独家</label>
					<input type="checkbox" id="vip" value="2"/><label for="vip">VIP</label>
					<input type="checkbox" id="1080p" value="4"/><label for="1080p">1080p</label>
					<input type="hidden" id="signId" value="${video.signId}"/>
				</td>
			</tr>
			<tr>
				<th>收费方式</th>
				<td><span id="albumFeeTypeSpan"></span></td>
			</tr>
			<tr>
				<th>频道</th>
				<td><span>${video.mzCname}</span></td>
			</tr>
			<tr>
				<th>合集简介</th>
				<td><textarea id="albumDescription" style="width: 240px; height: 70px;resize: none"></textarea></td>
			</tr>
			
		</table>
		
		<span >视频信息:</span>
		<table class="editflexigrid" style="width: 360px; border-collapse:collapse;">
		    <tr>
				<th>视频ID</th>
				<td><span id="videoId">${video.id}</span></td>
			</tr>
			<tr>
				<th>视频名称</th>
				<td><input type="text" id="name" value="${video.name}" /></td>
			</tr>
			<tr>
				<th>视频副标题</th>
				<td><input type="text" id="subName" value="${video.subName}" /></td>
			</tr>
			<tr>
				<th id="videoDireText">视频导演</th>
				<td>
					<input type="hidden" id="mzCid" value="${video.mzCid}" />
					<input type="hidden" id="videoMaster" value="${video.master}" />
					<input type="text" id="director" value="${video.director}" />
				</td>
			</tr>
			<tr>
				<th id="videoActorText">视频主演</th>
				<td>
					<input type="hidden" id="videoGuest" value="${video.guest}" />
					<input type="text" id="actor" value="${video.actor}" />
				</td>
			</tr>
			<tr id="fvideoVoiceActorTr">
				<th id="videoVoiceActorText">视频声优</th>
				<td>
					<input type="text" id="VideoVoiceActor" value="${video.voiceActor}" />
				</td>
			</tr>
			<tr id="fsortTr">
				<th>集数</th>
				<td><input type="text" id="sort" value="${video.sort}"/></td>
			</tr>
			<tr id="fperiodTr">
				<th>期数</th>
				<td>
					<input type="text" id="fperiod" value="${video.period}">
				</td>
			</tr>
			<tr>
				<th>时长</th>
				<td>
					<input type="text" id="duration" value="${video.duration}"/>分钟
				</td>
			</tr>
			<tr>
				<th>年份</th>
				<td><input type="text" id="year" value="${video.yearStr}" style="imeMode:disabled" /></td>
			</tr>
			<tr>
				<th>上映时间</th>
				<td>
					<input type="hidden" id="playDate" value="${video.playDate}"/>
					<input type="text" style="width:40px;" id="playYear" value=""/>年
					<input type="text" style="width:40px;" id="playMonth" value=""/>月
					<input type="text" style="width:40px;" id="playDay" value=""/>日
					<input type="hidden" style="width:40px;" id="hdPlayYear" value=""/>
					<input type="hidden" style="width:40px;" id="hdPlayMonth" value=""/>
					<input type="hidden" style="width:40px;" id="hdPlayDay" value=""/>
				</td>
			</tr>
			<tr>
				<th>评分/评分人数</th>
				<td>
					<span><input type="text" style="width:20px;" id="videoScore" value="${video.score}" maxlength=4/></span>
					&nbsp; / &nbsp;
					<span><input type="text" style="width:20px;" id="videoScoreMan" value="0" readonly/></span>
				</td>
			</tr>
			<tr>
				<th>播放次数</th>
				<td><span>${video.playCount}</span></td>
			</tr>
			<tr>
				<th>下载次数</th>
				<td><span>${video.downloadCount}</span></td>
			</tr>
			<tr>
				<th>收藏次数</th>
				<td><span></span>${video.collectCount}</td>
			</tr>
			<tr>
				<th>状态</th>
				<td><span id="statusVideo">${video.status}</span></td>
			</tr>
			<tr>
				<th>收费方式</th>
				<td><span id="feeTypeSpan"></span><input type="hidden" id="videoFeeType" name="videoFeeType" value="${video.feeType}"/></td>
			</tr>
			<tr>
				<th>视频定价</th>
				<td><input type="text" value="0" disabled="disabled"/><label>元</label></td>
			</tr>
			<tr>
				<th>视频简介</th>
				<td><textarea id="videoDescription" style="width: 240px; height: 70px;resize: none">${video.description}</textarea></td>
			</tr>
			<tr style="margin-top: 13px;">
				<td style="border: 0;"><input id="saveVideo" type="button" class="Mbutton3" value="保存"/></td>
				<td style="border: 0;"><input id="backList" type="button" class="Mbutton3" value="返回"/></td>
			</tr>	
		</table>
	</div>
	
	<div style="float: left; width: 650px;">
		<div style="float: left; width: 320px;">
			<table>
				<tr>
					<td><span>视频单集图片(横图):</span></td>
					<td colspan="2">
						<div style="width: 160px;height: 120px;">
							<img id="videoImg" style="width: 160px;height: 120px;" src="${video.images}"/></div></td>
				</tr>
				<tr>
					<td><input type="text" id="videoImgUrl" value="${video.images}"/>
						<input type="hidden" id="videoOriginImg" value="${video.originImage}"/>
					</td>
					<td><input id="videoImgUpload" type="button" value="浏览"/></td>
					<td><input id="resetVideoImg" type="button" class="Mbutton3" value="恢复原图"/></td>
				</tr>
			</table>
		</div>
		
		<div style="float: left; width: 300px;margin-left: 30px;">
			<table>
				<tr>
					<td><span>视频合集图片(横图):</span></td>
					<td colspan="2">
						<div style="width: 160px;height: 120px;">
							<img id="albumImg" style="width: 160px;height: 120px;"/></div></td>
				</tr>
				<tr>
					<td><input type="text" id="albumImgUrl" value=""/>
						<input type="hidden" id="albumOriginImg" value=""/>
					</td>
					<td><input id="albumImgUpload" type="file" value="浏览"/></td>
					<td><input id="resetAlbumImg" type="button" class="Mbutton3" value="恢复原图"/></td>
				</tr>
			</table>
		</div>
		
		<div style="float: left; width: 320px;">
			<table>
				<tr>
					<td><span>视频单集图片(竖图):</span></td>
					<td colspan="2">
						<div style="width: 160px;height: 160px;">
							<img id="videoIcons" style="width: 120px;height: 160px;" src="${video.icons}"/></div></td>
				</tr>
				<tr>
					<td><input type="text" id="videoIconsUrl" value="${video.icons}"/>
						<input type="hidden" id="videoOriginIcons" value="${video.originIcon}"/>
					</td>
					<td><input id="videoIconsUpload" type="button" value="浏览"/></td>
					<td><input id="resetVideoIcons" type="button" class="Mbutton3" value="恢复原图"/></td>
				</tr>
			</table>
		</div>
		
		<div style="float: left; width: 300px;margin-left: 30px;">
			<table>
				<tr>
					<td><span>视频合集图片(竖图):</span></td>
					<td colspan="2">
						<div style="width: 160px;height: 160px;">
							<img id="albumIcons" style="width: 120px;height: 160px;"/></div></td>
				</tr>
				<tr>
					<td><input type="text" id="albumIconsUrl" value=""/>
						<input type="hidden" id="albumOriginIcons" value=""/>
					</td>
					<td><input id="albumIconsUpload" type="file" value="浏览"/></td>
					<td><input id="resetAlbumIcons" type="button" class="Mbutton3" value="恢复原图"/></td>
				</tr>
			</table>
		</div>
		
		<div id="urlDiv" class="M-listRegion" style="float: left;margin-top: 40px;">
			<table id="urlList"></table>
		</div>
		
		<div style="float: left;margin-top: 60px;">
			<div id="labels"><input id="addLabel" type="button" class="Mbutton3" value="添加标签"/></div>
			<table id="labelList" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word; width: 650px;"></table>
		</div>
	</div>
	
<script type="text/javascript" src="/resources/common/js/MZPub-video.js"></script>
<script type="text/javascript" src="/resources/video/js/manage/util/VideoResources.js"></script>
<script type="text/javascript" src="/resources/video/js/manage/util/VideoUtil.js"></script>
<script type="text/javascript" src="/resources/video/js/manage/common/jquery-uploadify.js"></script>
<script type="text/javascript" src="/resources/video/js/manage/util/upload-setting.js"></script>
<script type="text/javascript" src="/resources/video/js/manage/video/video-edit.js?a=9"></script>
</body>
</html>